package visao.locacao;

import visao.tipoVeiculo.InterfaceListagemTipoVeiculo;
import java.awt.*;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import modelo.dominio.Locacao;
import modelo.dominio.Veiculo;
import modelo.dominio.Cliente;
import modelo.dominio.Motorista;
import modelo.dominio.TipoLocacao;
import modelo.persistencia.ControleAcesso;
import modelo.persistencia.PersistenciaLocacao;
import modelo.persistencia.PersistenciaCliente;
import modelo.persistencia.PersistenciaMotorista;
import modelo.persistencia.PersistenciaTipoLocacao;
import modelo.persistencia.PersistenciaVeiculo;

/**
 * Essa classe é responsável pela criação da interface de cadastro 
 * de uma locação
 * @author elkson
 */
public class InterfaceCadastroLocacao extends javax.swing.JFrame {
	
	private final PersistenciaLocacao persistenciaLocacao = new PersistenciaLocacao();	
	private final PersistenciaCliente persistenciaCliente = new PersistenciaCliente();
	private final PersistenciaMotorista persistenciaMotorista = new PersistenciaMotorista();
	private final PersistenciaVeiculo persistenciaVeiculo = new PersistenciaVeiculo();
	private final PersistenciaTipoLocacao persistenciaTipoLocacao = new PersistenciaTipoLocacao();
	private int aux;
	
	/*
	 * Construtor da interface cadastro da locação
	 */
	public InterfaceCadastroLocacao(){
		initComponents();
			
		this.setTitle("Cadastro de Locação");
		
		jButton1.setVisible(true);
		jButton2.setVisible(false);
		jButton3.setVisible(true);
		jButton4.setVisible(false);
		jButton5.setVisible(true);
		jButton6.setVisible(false);
		jLabel1.setVisible(false);
		jLabel2.setVisible(false);
		jLabel3.setVisible(false);
		jLabel4.setVisible(false);
		jLabel5.setVisible(false);
		jLabel6.setVisible(false);
		jLabel7.setVisible(true);
		jPanel1.setVisible(true);
		jRadioButton1.setVisible(false);
		jRadioButton2.setVisible(false);
		jTextField1.setText("");
		jTextField1.setVisible(false);
		jTextField2.setText("");
		jTextField2.setVisible(false);
		jTextField3.setText("");
		jTextField3.setVisible(false);
		jTextField4.setText("");
		jTextField4.setVisible(false);
		jTextField5.setText("");
		jTextField5.setVisible(false);
		jTextField6.setEnabled(true);
		jTextField6.setText("");
		jTextField6.setVisible(true);
	}
	// fim do construtor
	
	@SuppressWarnings("unchecked")
   private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jTextField2 = new javax.swing.JTextField();
        jTextField3 = new javax.swing.JTextField();
        jTextField4 = new javax.swing.JTextField();
        jTextField5 = new javax.swing.JTextField();
        jButton4 = new javax.swing.JButton();
        jLabel6 = new javax.swing.JLabel();
        jRadioButton1 = new javax.swing.JRadioButton();
        jRadioButton2 = new javax.swing.JRadioButton();
        jLabel7 = new javax.swing.JLabel();
        jTextField6 = new javax.swing.JTextField();
        jButton5 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton6 = new javax.swing.JButton();
        jButton1 = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createTitledBorder(""), "Cadastro", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Ubuntu Light", 0, 24), new java.awt.Color(76, 76, 76))); // NOI18N
        jPanel1.setPreferredSize(new java.awt.Dimension(800, 600));

        jLabel1.setFont(new java.awt.Font("Ubuntu Light", 0, 18)); // NOI18N
        jLabel1.setText("Digite o ID do Tipo Veículo : ");

        jLabel2.setFont(new java.awt.Font("Ubuntu Light", 0, 18)); // NOI18N
        jLabel2.setText("Previsão de dias :");

        jLabel3.setFont(new java.awt.Font("Ubuntu Light", 0, 18)); // NOI18N
        jLabel3.setText("Km de saída :");

        jLabel4.setFont(new java.awt.Font("Ubuntu Light", 0, 18)); // NOI18N
        jLabel4.setText("CNH do Motorista :");

        jLabel5.setFont(new java.awt.Font("Ubuntu Light", 0, 18)); // NOI18N
        jLabel5.setText("Placa do Veículo :");

        jButton4.setText("Listar Tipo Veículos");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
				try {
					jButtonListarTiposVeiculos(evt);
				} catch (IOException ex) {
					Logger.getLogger(InterfaceCadastroLocacao.class.getName()).log(Level.SEVERE, null, ex);
				}
            }
        });

        jLabel6.setFont(new java.awt.Font("Ubuntu Light", 0, 18)); // NOI18N
        jLabel6.setText("Selecione o tipo de Locação:");

        jRadioButton1.setFont(new java.awt.Font("Ubuntu Light", 0, 18)); // NOI18N
        jRadioButton1.setText("Por Km");

        jRadioButton2.setFont(new java.awt.Font("Ubuntu Light", 0, 18)); // NOI18N
        jRadioButton2.setText("Diária");

        jLabel7.setFont(new java.awt.Font("Ubuntu Light", 0, 18)); // NOI18N
        jLabel7.setText("Digite o CPF do cliente");

        jButton5.setText("Ok");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonOkActionPerformed(evt);
            }
        });

        jButton2.setText("Confirmar");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConfirmar(evt);
            }
        });

        jButton6.setText("Cancelar");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel7)
                .addGap(18, 18, 18)
                .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 227, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(238, Short.MAX_VALUE))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(36, 36, 36)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(18, 18, 18)
                        .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel6)
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jRadioButton2)
                            .addComponent(jRadioButton1)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel5)
                            .addComponent(jLabel2)
                            .addComponent(jLabel3)
                            .addComponent(jLabel4))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTextField5)
                            .addComponent(jTextField4)
                            .addComponent(jTextField3)
                            .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 199, Short.MAX_VALUE))))
                .addContainerGap(193, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap(433, Short.MAX_VALUE)
                .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton5))
                .addGap(27, 27, 27)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton4))
                .addGap(14, 14, 14)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel5)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2))
                        .addGap(13, 13, 13)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3))
                        .addGap(14, 14, 14)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel6)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jRadioButton1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jRadioButton2)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 55, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton2)
                    .addComponent(jButton6))
                .addContainerGap())
        );

        jButton1.setText("Voltar");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVoltar(evt);
            }
        });

        jButton3.setText("Logoff");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonLogOff(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 772, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(20, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(44, 44, 44)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 488, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(jButton3))
                .addContainerGap(20, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>                  
	
	/*
	 * Método do Botão Voltar que retorna para a janela de menu principal
	 * @param evt
	 */
	private void jButtonVoltar(java.awt.event.ActionEvent evt) {                               
		dispose();
		ControleAcesso.voltarMenuPrincipal();
	}    
	// fim do botão voltar

	/*
	 * Método do botão confirmar que seta os campos para cadastro sendo 
	 * obrigatorio o cadastro de km saida, id Tipo Veículo, placa e 
	 * cnh senão gera msg de erro 
	 * @param evt
	 */
	private void jButtonConfirmar(java.awt.event.ActionEvent evt) {   
		String pDias = jTextField2.getText();
		String kmSaida = jTextField3.getText();
		String cnh = jTextField4.getText();
		String idTV = jTextField1.getText();
		String placa = jTextField5.getText();
		String cpf = jTextField6.getText();
		
		if(!pDias.equals("") && !kmSaida.equals("") && !idTV.equals("") && !placa.equals("") && !cnh.equals("")){
			Motorista motorista = new Motorista(cnh);
			Motorista motorista2 = (Motorista) persistenciaMotorista.consultarMotoristaCNH(motorista);
			if(motorista2 != null){
				Veiculo veiculo = new Veiculo(placa);
				Veiculo veiculo2 = (Veiculo) persistenciaVeiculo.consultar(veiculo);
				if((veiculo2 != null) && veiculo2.isDisponivel()){
					long cpf2 = Long.parseLong(cpf);
					Cliente cliente = new Cliente(cpf2);
					Cliente cliente1 = (Cliente) persistenciaCliente.consultar(cliente);
					if(cliente1 != null){
						if(jRadioButton1.isSelected() && jRadioButton2.isSelected()){
							JOptionPane.showMessageDialog(null,"<html> <font color='black'>Selecione somente um opção!","Erro",JOptionPane.ERROR_MESSAGE);
						}
						if(jRadioButton1.isSelected()){int aux = 1;}
						else{int aux = 2;}
						int id = Integer.parseInt(idTV);
						int previsaoDias = Integer.parseInt(pDias);
						long quilometragemSaida = Long.parseLong(kmSaida);
						TipoLocacao tipoLocacao = new TipoLocacao(aux);
						veiculo2.setDisponivel(false);
						Locacao novaLocacao = new Locacao(quilometragemSaida, previsaoDias, (TipoLocacao)persistenciaTipoLocacao.consultar(tipoLocacao), motorista2, cliente, veiculo2);
						persistenciaLocacao.salvar(novaLocacao);
						JOptionPane.showMessageDialog(null,"<html> <font color='black'>Locação cadastrada com sucesso!","Parabéns!",JOptionPane.INFORMATION_MESSAGE);
					}else{
						JOptionPane.showMessageDialog(null,"<html> <font color='black'>Não existe Cliente com esse CPF!","Erro",JOptionPane.ERROR_MESSAGE);
					}
				}else{
					JOptionPane.showMessageDialog(null,"<html> <font color='black'>Não existe Veículo com essa Placa!","Erro",JOptionPane.ERROR_MESSAGE);
				}
			}else{
				JOptionPane.showMessageDialog(null,"<html> <font color='black'>Não existe Motorista com essa CNH!","Erro",JOptionPane.ERROR_MESSAGE);
			}			
		}else{
			JOptionPane.showMessageDialog(null,"<html> <font color='black'>Por favor, preencha todos os campos!","Erro",JOptionPane.ERROR_MESSAGE);
		}
	}                                 
	// fim do método 
	
	/*
	 * Método do botão Log off que retorna a janela de logoff
	 * @param evt
	 */
	private void jButtonLogOff(java.awt.event.ActionEvent evt) {                               
		dispose();
		ControleAcesso.logoff();
	}                              
	// fim do método log off

	/*
	 * Método do botão que gera a lista de tipo veículo
	 * @param evt
	 * @throws IOException
	 */
	private void jButtonListarTiposVeiculos(java.awt.event.ActionEvent evt) throws IOException {                                            
		new InterfaceListagemTipoVeiculo().setVisible(true);
	}
	//fim do método
	
	/*
	 * Método do botão que realiza a pesquisa de um cliente através de um cpf
	 * @param evt
	 */
    private void jButtonOkActionPerformed(java.awt.event.ActionEvent evt) {
		String cpf = jTextField6.getText();
		
		if(!cpf.equals("")){
			long cpf2 = Long.parseLong(cpf);
			Cliente c = new Cliente(cpf2);
			Cliente c1 = (Cliente) persistenciaCliente.consultar(c);
			
			if(c1 != null){
				jButton1.setVisible(true);
				jButton2.setVisible(true);
				jButton3.setVisible(true);
				jButton4.setVisible(true);
				jButton5.setVisible(true);
				jButton6.setVisible(true);
				jLabel1.setVisible(true);
				jLabel2.setVisible(true);
				jLabel3.setVisible(true);
				jLabel4.setVisible(true);
				jLabel5.setVisible(true);
				jLabel6.setVisible(true);
				jLabel7.setVisible(true);
				jPanel1.setVisible(true);
				jRadioButton1.setVisible(true);
				jRadioButton2.setVisible(true);
				jTextField1.setVisible(true);
				jTextField2.setVisible(true);
				jTextField3.setVisible(true);
				jTextField4.setVisible(true);
				jTextField5.setVisible(true);
				jTextField6.setEnabled(true);                               
				jTextField6.setVisible(true);
			}else{
				JOptionPane.showMessageDialog(null,"<html> <font color='black'>Nenhum Cliente com esse CPF, cadastre-o primeiro!</font> </html>","Erro",JOptionPane.ERROR_MESSAGE);
				jButton1.setVisible(true);
				jButton2.setVisible(false);
				jButton3.setVisible(true);
				jButton4.setVisible(false);
				jButton5.setVisible(true);
				jButton6.setVisible(false);
				jLabel1.setVisible(false);
				jLabel2.setVisible(false);
				jLabel3.setVisible(false);
				jLabel4.setVisible(false);
				jLabel5.setVisible(false);
				jLabel6.setVisible(false);
				jLabel7.setVisible(true);
				jPanel1.setVisible(true);
				jRadioButton1.setVisible(false);
				jRadioButton2.setVisible(false);
				jTextField1.setText("");
				jTextField1.setVisible(false);
				jTextField2.setText("");
				jTextField2.setVisible(false);
				jTextField3.setText("");
				jTextField3.setVisible(false);
				jTextField4.setText("");
				jTextField4.setVisible(false);
				jTextField5.setText("");
				jTextField5.setVisible(false);
				jTextField6.setEnabled(true);
				jTextField6.setText("");
				jTextField6.setVisible(true);
			}
		}else{
			JOptionPane.showMessageDialog(null,"<html> <font color='black'>Digite um CPF por favor!</font> </html>","Erro",JOptionPane.ERROR_MESSAGE);
		}
	}
    // fim do método
    
    /*
	* Método do botão cancelar que limpa os button e label
	* @param evt
	*/ 
	private void jButtonCancelarActionPerformed(java.awt.event.ActionEvent evt) {
		jButton1.setVisible(true);
		jButton2.setVisible(false);
		jButton3.setVisible(true);
		jButton4.setVisible(false);
		jButton5.setVisible(true);
		jButton6.setVisible(false);
		jLabel1.setVisible(false);
		jLabel2.setVisible(false);
		jLabel3.setVisible(false);
		jLabel4.setVisible(false);
		jLabel5.setVisible(false);
		jLabel6.setVisible(false);
		jLabel7.setVisible(true);
		jPanel1.setVisible(true);
		jRadioButton1.setVisible(false);
		jRadioButton2.setVisible(false);
		jTextField1.setText("");
		jTextField1.setVisible(false);
		jTextField2.setText("");
		jTextField2.setVisible(false);
		jTextField3.setText("");
		jTextField3.setVisible(false);
		jTextField4.setText("");
		jTextField4.setVisible(false);
		jTextField5.setText("");
		jTextField5.setVisible(false);
		jTextField6.setEnabled(true);
		jTextField6.setText("");
		jTextField6.setVisible(true);
	}
	// fim do método
	
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JRadioButton jRadioButton1;
    private javax.swing.JRadioButton jRadioButton2;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JTextField jTextField3;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JTextField jTextField5;
    private javax.swing.JTextField jTextField6;
}
//fim da classe
